﻿<%@ Page Language="C#" ValidateRequest="false" Theme="WebMaster" MasterPageFile="~/WebMaster/MasterPage.master" AutoEventWireup="true" CodeFile="ProductAdd.aspx.cs" Inherits="webapp4U.UI.WebMaster_Default" %>
<%@ Register Src="~/WebMaster/Controls/Title.ascx" TagName="Title" TagPrefix="uc" %>
<%@ Import Namespace="webapp4U" %>
<%@ Register TagPrefix="webapp4U" Namespace="webapp4U.UI" %>
<%@ Register TagPrefix="FTB" Namespace="FreeTextBoxControls" Assembly="FreeTextBox" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PageContent" Runat="Server">

<uc:Title runat="server" ResourceKey='Product_Add'  />
<table width="100%" border="0"  cellpadding="0" cellspacing="0">
    <tr >
        <td colspan="2" align="center">
            <asp:Panel runat="server" ID="PanelMsg" CssClass="lblMsg" Visible="false" Width="400px">
                <asp:Label runat="server" ID="lblMsg"></asp:Label>
            </asp:Panel>
            <asp:ValidationSummary runat="server" ID="valChangePasswordSummary" ShowMessageBox="true" ShowSummary="false" />			
        </td>
    </tr>
    <tr>
        <td valign="top" style="padding-top:5pt;">
            <table align="left" border="0" cellpadding="8" cellspacing="0">
                <tr style="padding-top:10pt;">
                    <td width="130" align="right">Thuộc loại :</td>
                    <td>
                        <webapp4U:ddlCategory runat="server" ID="dlCategory" CssClass="Textbox" Width="255" EnableViewState="true"></webapp4U:ddlCategory>
                        <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator2" ControlToValidate="dlCategory" ErrorMessage="Bạn chưa chọn nhóm sản phẩm" Display="None"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr style="padding-top:10pt;">
                    <td width="130" align="right">Nhà Sản Xuất :</td>
                    <td>
                        <webapp4U:ddlCompany runat="server" ID="dlCompany" CssClass="Textbox" Width="255" EnableViewState="true" />
                        <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator1" ControlToValidate="dlCompany" ErrorMessage="Bạn chưa chọn công ty" Display="None" />
                    </td>
                </tr>
                <tr style="padding-top:10pt;">
                    <td  align="right">Mã sản phẩm :</td>
                    <td>
                        <asp:TextBox ID="txtProductCode"  Font-Bold="true" runat="server" Width="250" MaxLength="700"></asp:TextBox>
                    </td>
                </tr>
                
                <tr style="padding-top:10pt;" >
                    <td align="right">Tên sản phẩm :</td>
                    <td>
                        <asp:TextBox ID="txtProductName"  Font-Bold="true" runat="server" Width="250" MaxLength="700"></asp:TextBox>
                        <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator3" ControlToValidate="txtProductName" ErrorMessage="Chưa nhập Tên sản phẩm" Display="None" />
                    </td>
                </tr>
                
                <tr style="padding-top:10pt;">
                    <td width="130" align="right">Chất liệu :</td>
                    <td>
                        <webapp4U:ddlChatlieu runat="server" ID="dlChatlieu" CssClass="Textbox" Width="255" EnableViewState="true" />
                    </td>
                </tr>
                
                <tr style="padding-top:10pt;" >
                    <td align="right">&nbsp;</td>
                    <td>
                        <asp:TextBox ID="txtNam"  Font-Bold="true" runat="server" Width="250" 
                            MaxLength="700" Visible="False"></asp:TextBox>
                    </td>
                </tr>
                
                <tr style="padding-top:10pt;" class="Hidden">
                    <td align="right">Tên Sản Phẩm(en) :</td>
                    <td>
                        <asp:TextBox ID="txtItemName_en"  Font-Bold="true" runat="server" Width="250" MaxLength="700"></asp:TextBox>
                    </td>
                </tr>
                
                <tr style="padding-top:10pt;" >
                    <td align="right">&nbsp;</td>
                    <td>
                        <asp:TextBox ID="txtTrongluong"  Font-Bold="true" runat="server" Width="250" 
                            MaxLength="700" Visible="False"></asp:TextBox>
                    </td>
                </tr>
                
                <tr style="padding-top:10pt;">
                    <td align="right">Giá bán :</td>
                    <td>
                        <asp:TextBox ID="txtPrice"  Font-Bold="true" runat="server" Width="250" MaxLength="700"></asp:TextBox> VNĐ
                        <asp:RegularExpressionValidator runat="server" SetFocusOnError="true" 
                                 ID="RegularExpressionValidator1" 
                                 ControlToValidate="txtPrice" 
                                 ValidationExpression="^(([0-9.,\s])+)$" 
                                 ErrorMessage="Giá bán phải là kiểu số(vd: 1.500.000)." Display="none">
                        </asp:RegularExpressionValidator>
                    </td>
                </tr>
                
                <tr style="padding-top:10pt;">
                    <td align="right">Hình ảnh :</td>
                    <td>
                        <asp:FileUpload runat="server" ID="PhotoFile" Width="255px"/>
                        <asp:HiddenField runat="server" ID="HPhotoFile" />
                    </td>
                </tr>
                
                
                <tr>
                    <td align="right" valign="top">Thông tin mô tả :</td>
                    <td>
                        <asp:TextBox ID="txtDesc"  runat="server" Rows="5" TextMode="MultiLine" Width="400" MaxLength="700"></asp:TextBox>
                    </td>
                </tr>
                <tr style="padding-top:7pt; padding-right:3pt; padding-bottom:20pt;">
                    <td colspan="2" align="right">
                        <asp:Button runat="server" ID="btSave" OnClick="btSave_Click" Text=" Save " />
                    </td>
                </tr>
           </table>
        </td>
    </tr>
</table>
<br /><br /><br />

</asp:Content>

